projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02af2e6
)
luci-lib-docker: add options argument to send_http_socket
author
Florian Eckert
<
[email protected]
>
Wed, 29 Jul 2020 07:30:04 +0000
(09:30 +0200)
committer
Florian Eckert
<
[email protected]
>
Wed, 29 Jul 2020 07:30:04 +0000
(09:30 +0200)
Signed-off-by: Florian Eckert <
[email protected]
>
collections/luci-lib-docker/luasrc/docker.lua
patch
|
blob
|
history
diff --git
a/collections/luci-lib-docker/luasrc/docker.lua
b/collections/luci-lib-docker/luasrc/docker.lua
index 6b14626e5d1c516a89ef29eba03253e2ed3bdea7..642465370805bed8dca7a3add7c5c7c7d7a5fdc8 100644
(file)
--- a/
collections/luci-lib-docker/luasrc/docker.lua
+++ b/
collections/luci-lib-docker/luasrc/docker.lua
@@
-113,7
+113,7
@@
local open_socket = function(req_options)
end
end
-local send_http_socket = function(docker_socket, req_header, req_body, callback)
+local send_http_socket = function(
options,
docker_socket, req_header, req_body, callback)
if docker_socket:send(req_header) == 0 then
return {
headers={
@@
-288,7
+288,7
@@
local call_docker = function(options, http_method, api_group, api_action, name_o
local docker_socket = open_socket(req_options)
if docker_socket then
- return send_http_socket(docker_socket, req_header, req_body, callback)
+ return send_http_socket(
options,
docker_socket, req_header, req_body, callback)
else
return {
headers = {